module.exports ={
    "presets": ["@babel/env", '@vue/babel-preset-jsx'],
    //  import 和 module.exports 共存
    "sourceType": 'unambiguous',

    "plugins": [
        ["@babel/proposal-decorators", {
            "legacy": true,
            //    "decoratorsBeforeExport":true,
        }],
        ["@babel/proposal-class-properties", {
            "loose": true
        }],
        ["@babel/plugin-proposal-private-methods", {
            "loose": true
        }],
        "@babel/plugin-syntax-optional-chaining",

        "@babel/plugin-syntax-dynamic-import",

        // 兼容 export
        "@babel/plugin-proposal-export-default-from",

        // 兼容在ES6模块中 使用common.js
        // "transform-es2015-modules-commonjs",

        ["@babel/plugin-transform-runtime",{
            useESModules:true,
            absoluteRuntime: false,
            corejs: false,
            helpers: true,
            regenerator: true,
        }],
        "@babel/plugin-transform-modules-commonjs",
    ],
};
